package com.cm.scan.destory;

import com.cm.summer.annotion.Component;
import com.cm.summer.annotion.Value;
import jakarta.annotation.PreDestroy;

/**
 * @author cm
 * 2025/1/7
 */
@Component
public class AnnotationDestroyBean {
    @Value("${app.title}")
    public String appTitle;

    @PreDestroy
    void destroy() {
        this.appTitle = null;
    }
}
